import React, { useState } from 'react';
 
function BasicReact() {
  const [count, setCount] = useState(0)
  return (
    <div>
      <h2>这是一个 React 组件</h2>
      <p>Hello from React! {count}</p>
    </div>
  );
}
 
export default BasicReact;